/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session05;

import java.util.TreeSet;
import session04.Student;

/**
 *
 * @author macbookpro
 */
public class TreeSetTest {
    public static void main(String[] args) {
        TreeSet ts = new TreeSet();
        
        ts.add(new Student("R00004", "aaaa"));
        ts.add(new Student("R00001", "bbbb"));
        ts.add(new Student("R00005", "xxxx"));
        ts.add(new Student("R00002", "cccc"));
        
        for(Object obj : ts){
            System.out.println(obj);
        }
    }
}
